package com.xinzhitong.www.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 表信息查询
 *
 * @author 徐鑫
 */
@Repository
public interface TableMapper {

    @Select("select COLUMN_NAME from information_schema.COLUMNS where table_name=#{name}")
    String[] selectFieldsOfTableOrView(@Param("name") String name);

}
